import fetch from "../fetch";

/**
 * Version service
 */
const Gyro = {
  page: (query, param) => fetch({
	url: "api/admin/gyro/page",
	data: {
	  param: param,
	  query: query
	},
	method: "post"
  }),
  onlines: () => fetch({
	url: "api/admin/gyro/onlines",
	method: "post"
  }),
  refresh: () => fetch({
	url: "api/admin/gyro/options/refresh",
	method: "post"
  }),
  config: (setting) => fetch({
	url: "api/admin/gyro/options/config",
	method: "post",
	data: {
	  config: setting
	}
  }),
  gather: () => fetch({
	url: "api/admin/gyro/options/gather",
	method: "post"
  }),
  ungather: () => fetch({
	url: "api/admin/gyro/options/ungather",
	method: "post"
  }),
  upload: () => fetch({
	url: "api/admin/gyro/options/upload",
	method: "post"
  }),
  unupload: () => fetch({
	url: "api/admin/gyro/options/unupload",
	method: "post"
  }),
  flush: () => fetch({
	url: "api/admin/gyro/options/flush",
	method: "post"
  }),
  reboot: () => fetch({
	url: "api/admin/gyro/options/reboot",
	method: "post"
  }),
  close: () => fetch({
	url: "api/admin/gyro/options/close",
	method: "post"
  }),
};
export default Gyro;
